﻿///<summary>
/// AlphaModule Class
///</summary>
/// <remarks>
/// </remarks>
///<history>
///	[Zhanghua]	2007-12-03    Created
/// </history>

namespace TADF.Com.Alpha.Core.Module
{
    #region Imports
    using System;
    using System.Text;
    using System.Collections;
    using System.Collections.Generic;
    #endregion

    public abstract class AlphaModule
    {
        private List<string> _beans = new List<string>();
        private IDictionary<string, object> _actions = new Dictionary<string, object>();
        private string _name = "";
        private string _local = "";
        private AlphaModule _parentModule;
        private string _version;

        public List<string> Beans
        {
            get { return _beans; }
            set { _beans = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Locale
        {
            get { return _local; }
            set { _local = value; }
        }

        public AlphaModule ParentModule
        {
            get { return _parentModule; }
            set { _parentModule = value;  }
        }

        public string Version
        {
            get { return _version; }
            set { _version = value; }
        }

        public IDictionary<string, object> Actions
        {
            get { return _actions; }
            set { _actions = value; }
        }

        public void OnInit()
        {
        }

        /// <summary>
        /// 获得应用中文件的绝对路径
        /// </summary>
        /// <param name="path">相对于应用的路径</param>
        /// <returns></returns>
        public string GetWebFileRealPath(string path)
        {
            return "";
        }

        public string GetLocaleString(string key)
        {
            return null;
        }
    }
}
